﻿
function showPopUp(url, selector) {
    showMask("body", 11);
    $("body").append("<div id='divPopUp' class='roundBox5' style='position:fixed;z-index:12;width:300px; background-color:white; padding:10px; border:1px solid black;'></div>");
    $("#divPopUp").append("<center><img src='/Image/loadingbig.gif' /></center>");

    SetVerticalCenter("#divPopUp");
    SetHorrizalCenter("#divPopUp");
    $("#divPopUp").load(url + " " + selector, function () {
        SetVerticalCenter("#divPopUp");
        SetHorrizalCenter("#divPopUp");
    });
}

function closePopUp() {
    if ($('#divPopUp').length > 0) $('#divPopUp').remove();
    hideMask("body");
}